From d08f12eca036401331b51fff00dcd3a4fa0cb878 Mon Sep 17 00:00:00 2001 From: oliskoli Date: Sat, 22 Oct 2005 21:32:37 +0000 Subject: [PATCH] Uninitialized size before xcalloc fixed --- gpsbabel/coto.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gpsbabel/coto.c b/gpsbabel/coto.c index d3d363b08..1869aa2ed 100644 --- a/gpsbabel/coto.c +++ b/gpsbabel/coto.c @@ -361,6 +361,8 @@ coto_wpt_write(const waypoint *wpt) { notes = xstrdup(wpt->notes); } + + size = sizeof(*rec); if (notes != NULL) size += strlen(notes); rec = xcalloc(size, 1); -- 2.30.2